# 设计带有私有成员的手机

class Phone:
    __is_5g_enable=False
    def __check_5g(self):
        if self.__is_5g_enable ==True:
            print("5g开启")
        else:
            print("5g关闭,开启4g")
    def call_by_5g(self):
        self.__check_5g()
        print("正在通话中")

phone1=Phone()
phone1.call_by_5g()
